<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ui_FormFormsAdd.aspx.cs" Inherits="Private_Config_Users_ui_FormFormsAdd" %>
<%@ Register TagPrefix="Flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>
<html>
<head runat="server">
	<link href="../../../Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />
</head>
<body class="nopad">
<form id="form1" runat="server">
<Flux:HostTable runat="server">

<Flux:ValidationSummarySection runat="server" HeaderText="Please correct the following errors"/>
<Flux:Section runat="server" Title="Add Forms Authentication User">
<Flux:ShadePadBox runat="server">
	<table cellspacing="0" cellpadding="5" border="0" width="500">
	<tr><td>User's name:</td>
		<td><asp:TextBox Runat="server" ID="RealName" Width="250px" style="width:250px"/></td>
	</tr>
	<tr><td>Email address:<%=Required%></td>
		<td><asp:TextBox Runat="server" ID="EmailAddress" Width="250px" style="width:250px"/></td>
	</tr>
	<tr><td>Password:<%=Required%></td>
		<td><asp:TextBox Runat="server" ID="Password1" Width="150px" style="width:150px" TextMode="Password"/></td>
		</tr>
	<tr><td>Confirm Password:<%=Required%></td>
		<td><asp:TextBox Runat="server" ID="Password2" Width="150px" style="width:150px" TextMode="Password"/></td>
		</tr>
	</table>
</Flux:ShadePadBox>
</Flux:Section>

<Flux:CollapseSection runat="server" Title="Security Group Memberships">
<Flux:ShadePadBox runat="server">
	<asp:CheckBoxList Runat="server" ID="UserGroups"/>
</Flux:ShadePadBox>
</Flux:CollapseSection>

<Flux:CollapseSection runat="server" ID="extendedProperties" Title="Extended Properties">
<Flux:ShadePadBox runat="server">
	<asp:CheckBox Runat="server" ID="IsSuperUser" Text="User is a super user"/>
</Flux:ShadePadBox>
</Flux:CollapseSection>

<Flux:Section runat="server">
<Flux:PadBox CssClass="Pad5Button" runat="server">
	<asp:Button runat="server" ID="btnSave" Text="Save" OnClick="btnSave_Click"/>&nbsp;&nbsp;&nbsp;
	<asp:Button runat="server" ID="btnCancel" Text="Cancel" OnClick="btnCancel_Click" CausesValidation="False"/>
</Flux:PadBox>
</Flux:Section>

<!-- Validators -->
<asp:RequiredFieldValidator Runat="server" ControlToValidate="EmailAddress" ErrorMessage="You must specify the users email address" Display="None"/>
<asp:RegularExpressionValidator ID="EmailRE" Runat="server" ControlToValidate="EmailAddress" ErrorMessage="The email address does not appear to be valid" Display="None"/>
<asp:CustomValidator ID="EmailExists" Runat="server" ControlToValidate="EmailAddress" ErrorMessage="The email address is already registered on this system" Display="None"/>
<asp:RequiredFieldValidator runat="server" ControlToValidate="Password1" ErrorMessage="You must specify a password for this user" Display="None"/>
<asp:CustomValidator ID="PasswordMin5" Runat="server" ControlToValidate="Password1" ErrorMessage="Passwords must be a minimum of 5 characters long" Display="None"/>
<asp:CustomValidator ID="PasswordsMatch" Runat="server" ControlToValidate="Password1" ErrorMessage="Password and Confirm Password must match" Display="None"/>

</Flux:HostTable>
</form>
</body>
</html>
